package com.xls.box2023.entity;

import android.text.TextUtils;

import com.lzz.bottomencapsulation.consts.Consts;

import java.io.Serializable;

public class AccountBalanceEntity implements Serializable {

    /**
     * coins : 0
     * refferScore : 0
     * refferScoreTotal : 0
     * score : 0
     * scoreTotal : 0
     * totalCoins : 0
     * unionId : string
     */

    private String coins;
    private String refferScore;

    private String fxScore;

    private String refferScoreTotal;
    private String score;
    private String scoreTotal;
    private String totalCoins;
    private String unionId;

    public String getFxScore() {
        return fxScore;
    }
    public String getFxScoreText() {
        if (TextUtils.isEmpty(fxScore)) return "0";
        Long str=Long.parseLong(fxScore);
        return str/ Consts.JiFenDanWei +"";
    }

    public String getCoins() {
        return coins;
    }

    public void setCoins(String coins) {
        this.coins = coins;
    }

    public String getRefferScore() {
        return refferScore;
    }

    public void setRefferScore(String refferScore) {
        this.refferScore = refferScore;
    }

    public String getRefferScoreTotal() {
        return refferScoreTotal;
    }

    public String getRefferScoreTotalStr() {
        if (TextUtils.isEmpty(refferScoreTotal)) return "0";
        Long str=Long.parseLong(refferScoreTotal);
        return str/ Consts.JiFenDanWei +"";
    }

    public void setRefferScoreTotal(String refferScoreTotal) {
        this.refferScoreTotal = refferScoreTotal;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getScoreTotal() {
        return scoreTotal;
    }

    public void setScoreTotal(String scoreTotal) {
        this.scoreTotal = scoreTotal;
    }

    public String getTotalCoins() {
        return totalCoins;
    }

    public void setTotalCoins(String totalCoins) {
        this.totalCoins = totalCoins;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    @Override
    public String toString() {
        return "AccountBalanceEntity{" +
                "coins='" + coins + '\'' +
                ", refferScore='" + refferScore + '\'' +
                ", fxScore='" + fxScore + '\'' +
                ", refferScoreTotal='" + refferScoreTotal + '\'' +
                ", score='" + score + '\'' +
                ", scoreTotal='" + scoreTotal + '\'' +
                ", totalCoins='" + totalCoins + '\'' +
                ", unionId='" + unionId + '\'' +
                '}';
    }
}
